﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LoginPage.aspx.cs" Inherits="KPIBalanceScoreCard.LoginPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            text-align: center;
        }
        </style>
</head>
<body bgcolor="#3399ff">
    <form id="form1" runat="server">
    <div style="text-align: center">
    
        <div class="style1">
            <br />
            <asp:Image ID="Image1" runat="server" Height="121px" 
                ImageUrl="NBKLogo.gif" Width="151px" />
            <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="XX-Large" 
                ForeColor="#0000CC" Text="WELCOME TO BALANCE SCORE CARD"></asp:Label>
            <br />
            <br />
            <br />
          <!-- 
            <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="SELECT ROLE" 
                style="text-align: left"></asp:Label>
&nbsp;
    
        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
            DataSourceID="SqlDataSource1" DataTextField="RoleName" 
            DataValueField="RoleName">
        </asp:DropDownList>
        </div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:kpibalancescorecardConnectionString %>" 
            
            SelectCommand="SELECT DISTINCT [RoleName] FROM [Balance] ORDER BY [RoleName]">
        </asp:SqlDataSource>
        <br />
        <asp:Label ID="Label2" runat="server" Font-Bold="True" Text="SELECT USER"></asp:Label>
        <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" 
            DataSourceID="SqlDataSource2" DataTextField="EmployeeName" 
            DataValueField="EmployeeUserRef" 
            onselectedindexchanged="DropDownList2_SelectedIndexChanged" 
            style="text-align: center">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:kpibalancescorecardConnectionString %>" 
            
            SelectCommand="SELECT DISTINCT EmployeeUserRef, EmployeeName + '_' + OrganizationName AS EmployeeName FROM Balance WHERE (RoleName = @RoleName) ORDER BY EmployeeName" 
            onselecting="SqlDataSource2_Selecting">
            <SelectParameters>
                <asp:ControlParameter ControlID="DropDownList1" Name="RoleName" 
                    PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
          
          -->
        <table>
            <tr>
                <td>
                    <asp:LinkButton ID="forgotPassword" runat="server" Text="Forgot Password" 
                        onclick="forgotPassword_Click" />
                </td>
                <td>
                    <asp:LinkButton ID="createAccount" runat="server" Text="Create Account" 
                        PostBackUrl="~/CreateUser.aspx" />
                </td>
                <td>
                    <asp:LinkButton ID="changePassword" runat="server" Text="Change Password" 
                        PostBackUrl="~/ChangePassword.aspx" />
                </td>
            </tr>
        </table>
        <table>
            <tr>
                <th>
                User reference
                </th>
                <td>
                <asp:TextBox ID="username" runat="server" />
                </td>
            </tr>
            
            <tr>
                <th>
                Password
                </th>
                <td>
               <asp:TextBox ID="pwd" runat="server" TextMode="Password" />
                </td>
            </tr>
        
        <tr>
            <th colspan="2">
                <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>
            </th>
        </tr>
        
        <tr>
            <th colspan="2">
                 <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            Text="Submt" Enabled="true" />
                    </th>
        </tr>
        
        
        
        
        
        
        </table>
        
        
       
    
    </div>
    </div>
    </form>
</body>
</html>
